#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
int main()
{
	int n;
	scanf("%d", &n);
	double s = 100.0 + 2.0 * 50 * (1 - pow(0.5, n - 1)) / (1 - 0.5);
	double h = 100 * pow(0.5, n);
	printf("%lf\n%lf", s, h);
	return 0;
}